package com.eas.web.home.module.screen;

import com.alibaba.citrus.turbine.Context;
import com.alibaba.citrus.turbine.Navigator;
import com.alibaba.citrus.turbine.TurbineRunData;
import com.eas.web.common.utils.WebUser;
import com.eas.web.home.module.action.LoginAction;

public class Login {

    public void execute(TurbineRunData rundata, Navigator nav, Context context) {
        WebUser webUser = WebUser.getWebUser(rundata);
        if (webUser.hasLogin()) {
            LoginAction.redirectUserHome(nav, webUser.getUserType());
        }
    }
}
